<template>
  <div class="floor">
    <div class="container">
      <div class="title clearfix">
        <h3 class="fl">{{ list.name }}</h3>
        <div class="fr">
          <ul class="nav-tabs clearfix">
            <li v-for="(nav, index) in list.navList" :key="index">
              <a href="#tab1" data-toggle="tab">{{ nav.text }}</a>
            </li>
          </ul>
        </div>
      </div>
      <div class="tab-content">
        <div class="floor-1">
          <div class="blockgary">
            <ul class="jd-list">
              <li v-for="(keyword, index) in list.keywords" :key="index">
                {{ keyword }}
              </li>
            </ul>
            <img v-lazy="list.imgUrl" />
          </div>
          <div class="floorBanner">
            <!-- 轮播图的地方 -->
            <Carsousel :list="list.carouselList" />
          </div>
          <div class="split">
            <div class="floor-conver-pit">
              <img v-lazy="list.recommendList[0]" />
            </div>
            <div>
              <img v-lazy="list.recommendList[1]" />
            </div>
          </div>
          <div class="split center">
            <img v-lazy="list.bigImg" />
          </div>
          <div class="split">
            <div class="floor-conver-pit">
              <img v-lazy="list.recommendList[2]" />
            </div>
            <div>
              <img v-lazy="list.recommendList[3]" />
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: "Floor",
  props: ["list"],

  data() {
    return {};
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
.container {
  margin-top: 35px;
  .title {
    line-height: 18px;
    margin: 9px 0;
    .fl {
      color: #c81623;
      font-size: 20px;

      font-weight: 700;
    }

    .fr {
      .nav-tabs {
        li {
          float: left;

          &:after {
            content: "|";
            padding: 0 10px;
          }
        }
      }
    }
  }
  .tab-content {
    border-top: 2px solid #c81623;
    border-bottom: 1px solid #c41c1c;

    .floor-1 {
      height: 360px;
      display: flex;

      .blockgary {
        width: 210px;
        height: 100%;
        background: #f7f7f7;
        .jd-list {
          padding: 15px 0;

          li {
            float: left;
            width: 40%;
            margin: 0 10px;
            border-bottom: 1px solid #e4e4e4;
            text-align: center;
            line-height: 26px;
          }
        }
        img {
          width: 100%;
        }
      }

      .floorBanner {
        width: 330px;
        height: 100%;
      }
      .split {
        & > div {
          height: 50%;
        }
        .floor-conver-pit {
          border-bottom: 1px solid #e4e4e4;
        }
        img {
          width: 100%;
          height: 100%;
          transition: all 400ms;

          &:hover {
            opacity: 0.5;
          }
        }
      }
    }

    .center {
      border: 1px solid #e4e4e4;
    }
  }
}
</style>
